package com.idp.system.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 菜单DTO类
 * @author king
 */
@Data
@ApiModel(description = "菜单DTO类")
@JsonIgnoreProperties({"handler","hibernateLazyInitializer"})
public class SysMenuDto implements Serializable {

	private static final long serialVersionUID = 1L;

	@ApiModelProperty("主键ID")
	private String id;
	@ApiModelProperty("菜单名称")
	private String menuName;
	@ApiModelProperty("菜单路径")
	private String menuUrl;
	@ApiModelProperty("菜单图标")
	private String menuIcon;
	@ApiModelProperty("父级菜单ID")
	private String parentId;
	@ApiModelProperty("排序")
	private Integer sort;
	@ApiModelProperty("是否包含下级")
	private Boolean hasChildren;
	@ApiModelProperty("子菜单集合")
	private List<SysMenuDto> children;
	@ApiModelProperty("按钮集合")
	private List<SysButtonDto> buttons;

}
